package entity;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/11/30  11:33
 */
public class Host {
    private String hostName; //主人姓名
    private Pet pet;

    public Pet getPet() {
        return pet;
    }

    public void setPet(Pet pet) {
        this.pet = pet;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public Host() {
    }

    public Host(String hostName, Pet pet) {
        this.hostName = hostName;
        this.pet = pet;
    }

    public void info(){
        System.out.println("主人是："+hostName+"，宠物是："+pet);
    }
}
